package o;

import java.lang.reflect.InvocationTargetException;

public class bka {
    private static Class<?> ॱ;

    static {
        try {
            ॱ = bjz.ˎ("android.os.SystemProperties");
        } catch (ClassNotFoundException e) {
            ॱ = null;
        }
    }

    private static <T> T ॱ(String str, T t, String str2, Class<?> cls) {
        if (ॱ != null) {
            try {
                t = bjz.ˏ(bjz.ˋ(ॱ, str2, String.class, cls), null, str, t);
            } catch (ClassNotFoundException e) {
            } catch (NoSuchMethodException e2) {
            } catch (IllegalAccessException e3) {
            } catch (IllegalArgumentException e4) {
            } catch (InvocationTargetException e5) {
            }
        }
        return t;
    }

    public static String ˏ(String str, String str2) {
        return (String) ॱ(str, str2, "get", String.class);
    }

    public static int ˏ(String str, int i) {
        return ((Integer) ॱ(str, Integer.valueOf(i), "getInt", Integer.TYPE)).intValue();
    }

    public static boolean ॱ(String str, boolean z) {
        return ((Boolean) ॱ(str, Boolean.valueOf(z), "getBoolean", Boolean.TYPE)).booleanValue();
    }
}
